const express = require('express');
const router = express.Router();

router.get('/', (req, res) => {
    const content = [];
    for(let i = 0; i < 40; i++) content.push({
        id: `${i + 1}`,
        brandName: 'string',
        dealerCode: 'string',
        dealerName: 'string',
        partShipmentCode: 'string',
        partInvoiceCode: 'string',
        invoicedDate: '2019-09-10T02:53:31.406Z',
        shipmentType: 1,
        paymentType: 1,
        priceTerms: 1,
        totalAmount: 1,
        invoiceAmount: 1,
        status: 1,
        options: [
            'listExcel',
            'invoiceExcel',
            'noticeExcel',
            'orderExcel',
            'packingExcel',
            'packingPdf',
            'confirmExcel'
        ]
    });
    res.json({
        message: '',
        payload: {
            content,
            totalElements: 40,
        }
    });
});
router.get('/:id/deliveryPackingListExcel', (req, res) => {
    res.json({
        message: '预箱单导出',
        payload: '1'
    });
});
router.get('/:id/prePartInvoiceExcel', (req, res) => {
    res.json({
        message: '预发票导出',
        payload: '1'
    });
});
router.get('/:id/partShipNoticeExcel', (req, res) => {
    res.json({
        message: '确认通知书导出',
        payload: '1'
    });
});
router.get('/:id/partShipOrderExcel', (req, res) => {
    res.json({
        message: '货运委托书导出',
        payload: '1'
    });
});
router.get('/:id/commercialInvoiceAndPackingListExcel', (req, res) => {
    res.json({
        message: '箱单发票导出',
        payload: '1'
    });
});
router.get('/:id/partShipConfirmExcel', (req, res) => {
    res.json({
        message: '出运确认书导出',
        payload: '1'
    });
});
module.exports = router;
